<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/public/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta charset="utf-8">
	<title>编辑文章</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport"
		  content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all" />
	<script>
        var ctx = "${ctx}";
	</script>
	<style type="text/css">
		.layui-form-item .layui-inline {
			width: 33.333%;
			float: left;
			margin-right: 0;
		}

		@media ( max-width :1240px) {
			.layui-form-item .layui-inline {
				width: 100%;
				float: none;
			}
		}
	</style>
</head>
<body class="childrenBody">
<form class="layui-form" style="width: 80%;margin-top: 20px;">
	<input type="hidden" name="id" value="${cmslink.id}"/>
	    	<div class="layui-form-item">
		<label class="layui-form-label">编号</label>
		<div class="layui-input-block">
			<input type="text" id="id" class="layui-input userName"
				   lay-verify="required" placeholder="请输入编号" name="id" value="${cmslink.id}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">栏目编号</label>
		<div class="layui-input-block">
			<input type="text" id="categoryId" class="layui-input userName"
				   lay-verify="required" placeholder="请输入栏目编号" name="categoryId" value="${cmslink.categoryId}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">链接名称</label>
		<div class="layui-input-block">
			<input type="text" id="title" class="layui-input userName"
				   lay-verify="required" placeholder="请输入链接名称" name="title" value="${cmslink.title}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">标题颜色</label>
		<div class="layui-input-block">
			<input type="text" id="color" class="layui-input userName"
				   lay-verify="required" placeholder="请输入标题颜色" name="color" value="${cmslink.color}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">链接图片</label>
		<div class="layui-input-block">
			<input type="text" id="image" class="layui-input userName"
				   lay-verify="required" placeholder="请输入链接图片" name="image" value="${cmslink.image}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">链接地址</label>
		<div class="layui-input-block">
			<input type="text" id="href" class="layui-input userName"
				   lay-verify="required" placeholder="请输入链接地址" name="href" value="${cmslink.href}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">权重，越大越靠前</label>
		<div class="layui-input-block">
			<input type="text" id="weight" class="layui-input userName"
				   lay-verify="required" placeholder="请输入权重，越大越靠前" name="weight" value="${cmslink.weight}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">权重期限</label>
		<div class="layui-input-block">
			<input type="text" id="DateString" class="layui-input userName"
				   lay-verify="required" placeholder="请输入权重期限" name="DateString" value="${DateString}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">创建者</label>
		<div class="layui-input-block">
			<input type="text" id="createBy" class="layui-input userName"
				   lay-verify="required" placeholder="请输入创建者" name="createBy" value="${cmslink.createBy}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">更新者</label>
		<div class="layui-input-block">
			<input type="text" id="updateBy" class="layui-input userName"
				   lay-verify="required" placeholder="请输入更新者" name="updateBy" value="${cmslink.updateBy}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">备注信息</label>
		<div class="layui-input-block">
			<input type="text" id="remarks" class="layui-input userName"
				   lay-verify="required" placeholder="请输入备注信息" name="remarks" value="${cmslink.remarks}">
		</div>
	</div>


     

	<div class="layui-form-item">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit="" lay-filter="editCmsLink">立即提交</button>
		</div>
	</div>
</form>
<script type="text/javascript" src="${ctx}/layui/layui.js"></script>
<script type="text/javascript" src="${ctx}/page/cmslink/editcmslink.js"></script>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#DateString' //指定元素
            ,type: 'datetime'
        });
    });
</script>
</body>
</html>